function getParam(name, p) {
  let str = decodeURIComponent(p)
  str = `&${str.split('?')[1]}`
  console.log(str)
  let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
  let r = str.substr(1).match(reg);
  if (r != null) return r[2]; return null;
}
module.exports = {
  getParam: getParam
}